package duotai_text;

public class t1 {
    public String name;

    public t1(String name) {
        this.name = name;
    }

    public void Do() {//这个是被子类重写的方法

    }
}

class t2 extends t1 {
    public String do_what;

    public t2(String name,String do_what) {
        super(name);
        this.do_what = do_what;
    }

    public void Do() {
        System.out.println( do_what + name);
    }
}
